<template>
  <div>
    <ul>
      <li v-for="item in list" @click="pushDetail(item.id)" :key="item.id">
        {{ item.title }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          id: 111,
          title: "商品1"
        },
        {
          id: 222,
          title: "商品2"
        },
        {
          id: 333,
          title: "商品3"
        }
      ]
    }
  },
  methods: {
    pushDetail(id) {
      this.$router.push('/detail/' + id)
    }
  }
}
</script>

<style>
li {
  line-height: 50px
}
</style>